<?php

namespace App\Http\Models;

use Illuminate\Database\Eloquent\Model;

class Profession extends Model
{
    protected $table = 'profession';
    protected $primaryKey = 'pro_id';
    protected $fillable = ['pro_name','teacher_ids','pro_desc','cover_img','carousel_imgs'];

    public function course(){
        return $this->hasMany('App\Http\Models\Course','pro_id','pro_id');
    }
}
